package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * kpi_total表 实体类
 * 表名：sys_total
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_total")
public class SysTotal implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * id
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 基地编号
     */
    @Column(name = "base_id", length = 32)
    private String baseId;
    
    /**
     * 基地名称
     */
    @Column(name = "base_name", length = 32)
    private String baseName;
    
    /**
     * 部门编号
     */
    @Column(name = "department_id", length = 32)
    private String departmentId;
    
    /**
     * 部门名称
     */
    @Column(name = "department_name", length = 32)
    private String departmentName;
    
    /**
     * 损失工时事件total
     */
    @Column(name = "lwdc_total")
    private Double lwdcTotal;
    
    /**
     * 医疗指标total
     */
    @Column(name = "medical_treatment_total")
    private Integer medicalTreatmentTotal;
    
    /**
     * 急救指标total
     */
    @Column(name = "first_aid_total")
    private Integer firstAidTotal;
    
    /**
     * 未遂事故total
     */
    @Column(name = "near_miss_total")
    private Integer nearMissTotal;
    
    /**
     * 财产损失total（基地）
     */
    @Column(name = "property_damage_total")
    private Integer propertyDamageTotal;
    
    /**
     * 违反环境保护条例total（基地）
     */
    @Column(name = "environment_violation_total")
    private Integer environmentViolationTotal;
    
    /**
     * 害虫控制total（基地）
     */
    @Column(name = "pest_control_total")
    private Integer pestControlTotal;
    
    /**
     * 害虫控制total（基地）(l2)
     */
    @Column(name = "pest_controls_total")
    private Integer pestControlsTotal;
    
    /**
     * 防火指标（部门）total
     */
    @Column(name = "fire_total")
    private Integer fireTotal;
    
    /**
     * 环境指标total（部门）
     */
    @Column(name = "environmental_total")
    private Integer environmentalTotal;
    
    /**
     * 其他事件total
     */
    @Column(name = "other_incident_total")
    private Integer otherIncidentTotal;
    
    /**
     * 行动计分total
     */
    @Column(name = "walk_about_score_total")
    private Integer walkAboutScoreTotal;
    
    /**
     * 员工数量total
     */
    @Column(name = "employee_number_total")
    private Integer employeeNumberTotal;
    
    /**
     * 工作时间total
     */
    @Column(name = "work_hours_total")
    private Double workHoursTotal;
    
    /**
     * 可行率total
     */
    @Column(name = "work_about_rate_total")
    private Double workAboutRateTotal;
    
    /**
     * 损失工时 比率total
     */
    @Column(name = "lwdc_rate_total")
    private Double lwdcRateTotal;
    
    /**
     * 专业发现total（部门）
     */
    @Column(name = "major_finding_total")
    private Integer majorFindingTotal;
    
    /**
     * 关键发现total（部门）
     */
    @Column(name = "critical_finding_total")
    private Integer criticalFindingTotal;
    
    /**
     * 损失工时事件target
     */
    @Column(name = "lwdc_target", length = 32)
    private String lwdcTarget;
    
    /**
     * 医疗指标target
     */
    @Column(name = "medical_treatment_target", length = 32)
    private String medicalTreatmentTarget;
    
    /**
     * 急救指标target
     */
    @Column(name = "first_aid_target", length = 32)
    private String firstAidTarget;
    
    /**
     * 未遂事故target
     */
    @Column(name = "near_miss_target", length = 32)
    private String nearMissTarget;
    
    /**
     * 防火指标target
     */
    @Column(name = "fire_target", length = 32)
    private String fireTarget;
    
    /**
     * 环境指标target
     */
    @Column(name = "environmental_target", length = 32)
    private String environmentalTarget;
    
    /**
     * 害虫控制target（部门）
     */
    @Column(name = "pest_control_target", length = 32)
    private String pestControlTarget;
    
    /**
     * 害虫控制target（部门）(l2)
     */
    @Column(name = "pest_controls_target", length = 32)
    private String pestControlsTarget;
    
    /**
     * 其他事件target
     */
    @Column(name = "other_incident_target", length = 32)
    private String otherIncidentTarget;
    
    /**
     * 行动计分target
     */
    @Column(name = "walk_about_score_target", length = 32)
    private String walkAboutScoreTarget;
    
    /**
     * 员工数量target
     */
    @Column(name = "employee_number_target", length = 32)
    private String employeeNumberTarget;
    
    /**
     * 工作时间target
     */
    @Column(name = "work_hours_target", length = 32)
    private String workHoursTarget;
    
    /**
     * 可行率target
     */
    @Column(name = "work_about_rate_target", length = 32)
    private String workAboutRateTarget;
    
    /**
     * 损失工时 比率target
     */
    @Column(name = "lwdc_rate_target", length = 32)
    private String lwdcRateTarget;
    
    /**
     * 关键发现target（部门）
     */
    @Column(name = "critical_finding_target", length = 32)
    private String criticalFindingTarget;
    
    /**
     * 专业发现target（部门）
     */
    @Column(name = "major_finding_target", length = 32)
    private String majorFindingTarget;
    
    /**
     * 填写人id
     */
    @Column(name = "create_id", length = 32)
    private String createId;
    
    /**
     * 填写人名字
     */
    @Column(name = "create_name", length = 32)
    private String createName;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 修改时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * kpi年份
     */
    @Column(name = "year", length = 32)
    private String year;
    
    /**
     * 
     * 默认值: n0
     */
    @Column(name = "data_type", nullable = false, length = 32)
    private String dataType;
    
    @Override
    public String toString() {
        return "SysTotal{" +
            "id=" + id +
            ", baseId=" + baseId +
            ", baseName=" + baseName +
            ", departmentId=" + departmentId +
            ", departmentName=" + departmentName +
            ", lwdcTotal=" + lwdcTotal +
            ", medicalTreatmentTotal=" + medicalTreatmentTotal +
            ", firstAidTotal=" + firstAidTotal +
            ", nearMissTotal=" + nearMissTotal +
            ", propertyDamageTotal=" + propertyDamageTotal +
            ", environmentViolationTotal=" + environmentViolationTotal +
            ", pestControlTotal=" + pestControlTotal +
            ", pestControlsTotal=" + pestControlsTotal +
            ", fireTotal=" + fireTotal +
            ", environmentalTotal=" + environmentalTotal +
            ", otherIncidentTotal=" + otherIncidentTotal +
            ", walkAboutScoreTotal=" + walkAboutScoreTotal +
            ", employeeNumberTotal=" + employeeNumberTotal +
            ", workHoursTotal=" + workHoursTotal +
            ", workAboutRateTotal=" + workAboutRateTotal +
            ", lwdcRateTotal=" + lwdcRateTotal +
            ", majorFindingTotal=" + majorFindingTotal +
            ", criticalFindingTotal=" + criticalFindingTotal +
            ", lwdcTarget=" + lwdcTarget +
            ", medicalTreatmentTarget=" + medicalTreatmentTarget +
            ", firstAidTarget=" + firstAidTarget +
            ", nearMissTarget=" + nearMissTarget +
            ", fireTarget=" + fireTarget +
            ", environmentalTarget=" + environmentalTarget +
            ", pestControlTarget=" + pestControlTarget +
            ", pestControlsTarget=" + pestControlsTarget +
            ", otherIncidentTarget=" + otherIncidentTarget +
            ", walkAboutScoreTarget=" + walkAboutScoreTarget +
            ", employeeNumberTarget=" + employeeNumberTarget +
            ", workHoursTarget=" + workHoursTarget +
            ", workAboutRateTarget=" + workAboutRateTarget +
            ", lwdcRateTarget=" + lwdcRateTarget +
            ", criticalFindingTarget=" + criticalFindingTarget +
            ", majorFindingTarget=" + majorFindingTarget +
            ", createId=" + createId +
            ", createName=" + createName +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", year=" + year +
            ", dataType=" + dataType +
        '}';
    }
} 